github.com/jinzhu/inflection.inflection.replace (field)
16 uses
github.com/jinzhu/inflection (current package)
inflections.go#L33: replace string
inflections.go#L130: replace: "${1}",
inflections.go#L138: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.singular) + "$"), replace: strings.ToUpper(value.plural)},
inflections.go#L139: inflection{regexp: regexp.MustCompile(strings.Title(value.singular) + "$"), replace: strings.Title(value.plural)},
inflections.go#L140: inflection{regexp: regexp.MustCompile(value.singular + "$"), replace: value.plural},
inflections.go#L147: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.plural) + "$"), replace: strings.ToUpper(value.singular)},
inflections.go#L148: inflection{regexp: regexp.MustCompile(strings.Title(value.plural) + "$"), replace: strings.Title(value.singular)},
inflections.go#L149: inflection{regexp: regexp.MustCompile(value.plural + "$"), replace: value.singular},
inflections.go#L157: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L158: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L159: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L167: inflection{regexp: regexp.MustCompile(strings.ToUpper(value.find)), replace: strings.ToUpper(value.replace)},
inflections.go#L168: inflection{regexp: regexp.MustCompile(value.find), replace: value.replace},
inflections.go#L169: inflection{regexp: regexp.MustCompile("(?i)" + value.find), replace: value.replace},
inflections.go#L259: return inflection.regexp.ReplaceAllString(str, inflection.replace)
inflections.go#L269: return inflection.regexp.ReplaceAllString(str, inflection.replace)